package com.lhwl.it.util;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("baseService")
public class BaseServiceImp implements BaseService {

	@Autowired
	protected BaseDao dao;
	
	public List list(String sql,HashMap map) {
		return dao.list(sql,map);
	}
	
	public HashMap get(String sql,String id) {
		return dao.get(sql,id);
	}	
	
	public int insert(String sql,HashMap map) {
		return dao.insert(sql,map);
	}
	
	public int update(String sql,HashMap map) {
		return dao.update(sql,map);
	}	

	
	public int delete(String sql,HashMap map) {
		return dao.delete(sql, map);
	}
	
	public PageBean getPage(String sql,HashMap map) {
		return dao.getPage(sql, map);
	}
	
	public HashMap getMap(String sql, HashMap map){
		return dao.getMap(sql, map);
	}
}
